package com.car.carmgr.service;

import com.car.carmgr.bean.News;
import com.github.pagehelper.PageInfo;

public interface NewsService {

    int insertNews(News news);

    int deleteNewsById(Integer newsId);

    int updateNews(News news);

    /**
     * 查询日志
     */
    PageInfo<News> findNewsByWhere(String title, String content,String publisherName, Integer page, Integer limit);

    Integer getCountByWhere(String title, String content,String publisherName);

    int deleteSomeNews(String[] split);

    News findNewsById(Integer id);
}
